<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>考勤系统</title>
		<meta name="description" content="">
		<meta name="keywords" content="">
		<link href="/css/checkin/normal.css" rel="stylesheet">
		<link href="/css/checkin/add.css" rel="stylesheet">
		<link href="/css/checkin/media_query.css" rel="stylesheet">
		<link href="/css/course.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="/stylesheets/loading.css"></link>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<body style="background-color:white">
		<div class="loading" style="display:none">
			<div class="loading_proportion">
				<div id="load"></div>
			</div>
		</div>
			
			<div class="mask">
				<div class="signup">
					<div class="texts">
						<div class="log">请输入教师发放的激活码</div>
						<div class="input">
							<input type="text" name="month" style="width:40px;">月
							<input type="text" name="day" style="width:40px;">日
						</div>
					</div>
					<div class="buttons">
						<button type="button" name="signup_sure" id="sure">确定</button>
						<button type="button" name="signup_reset" id="reset">重置</button>
					</div>
				</div>
			</div>
			<!-- 导航 -->
			<div class='nav'>
				<a href="/student" class="go_back" style="box-sizing:border-box;padding:8px 20px 5px 8px"><img src="/images/go_back.png"/></a>
				<div class="logo"></div>
				<div class="header_search margin-right-60">
					<input type="text" value="搜索" spellcheck="false" autocorrect="off" autocomplete="off" class='searchBox'>
					<a href="#"><span class="search_logo "></span></a>
				</div>
				<a href="#" class="quikCheck" style=" float: left;">请假</a>
				<a href="/logout" class="logout"><div class="logout_logo"></div></a>
				<div class="ueserinfo margin-right-10">
					<span class="profile margin-right-10"></span>
					<span class="userId"><%= student.sclass %></span>
					<span class="userId"><%= student.sname %></span>
				</div>
			</div>
			<div class="infoline">
				<img src="/images/face.png" alt=""><u class='course_name'><%= sc.course.cname %></u>出勤情况
				<div class="course_num">课程号:<%= sc.course._id %></div>
			</div>
			<div class="go_to_check"><a href="/student" style="text-decoration: none;
			color:white">返回进行签到</a></div>
			<div class="wrapper">
				<div class="mainbox">
					<div  class="signbox">
						<%
						console.log(sc);
						function signup(i,c){
						for (var n in c){
						if (c[n].time === i){
						return true
						}
						}
						return false
						}
						%>
						<% for (var i = 1;i <= sc.course.signup_times;i ++){ %>
						<div class="signTime">
							<% if(signup(i,sc.signup)){ %>
							<div class="signTimeTitle" >
								<%= i %>
							</div>
							<% } else { %>
							<div class="signTimeTitle" style="background-color:#f54848">
								<%= i %>
							</div>
							<% } %>
						</div>
						<% } %>
					</div>
				</div>
			</div>
		</body>
		<script src="/js/jquery-1.8.0.js" type="text/javascript"></script>
		<script>
var cid = "<%= sc.course._id %>"
		</script>
		<script src="/js/sc.js">
		</script>
	</html>
